//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package net.mingsoft.config;

import com.jagregory.shiro.freemarker.ShiroTags;
import freemarker.template.TemplateException;
import java.io.IOException;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;
import org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver;

@Configuration
public class FreemarkerConfig {
    @Autowired
    protected freemarker.template.Configuration configuration;
    @Autowired
    protected FreeMarkerConfigurer configurer;
    @Autowired
    protected FreeMarkerViewResolver resolver;
    @Autowired
    protected InternalResourceViewResolver springResolver;

    public FreemarkerConfig() {
    }

    @PostConstruct
    public void init() throws IOException, TemplateException {
        this.configuration.setSharedVariable("shiro", new ShiroTags());
    }
}
